# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgbase=python-distutils-extra
pkgname=('python3-distutils-extra' 'python2-distutils-extra')
pkgver=2.38
pkgrel=2
pkgdesc="Enhancements to the Python build system"
arch=('any')
license=('GPL')
url="https://launchpad.net/python-distutils-extra"
makedepends=('python3-setuptools' 'python2-setuptools')
source=("http://launchpad.net/$pkgbase/trunk/$pkgver/+download/$pkgbase-$pkgver.tar.gz"
        $pkgbase-$pkgver.tar.gz.asc::http://launchpad.net/$pkgbase/trunk/$pkgver/+download/dist-$pkgbase-$pkgver.tar.gz.asc)
md5sums=('4e4c9bee92a3ca8bfd915f3adcf14648'
         'SKIP')

package_python3-distutils-extra() {
  depends=('python>=3.3' 'intltool')

  cd "${srcdir}/${pkgbase}-${pkgver}"
  python3 setup.py install --root="${pkgdir}"
}

package_python2-distutils-extra() {
  depends=('python2>=2.7' 'intltool')

  cd "${srcdir}/${pkgbase}-${pkgver}"
  python2 setup.py install --root="${pkgdir}"
}
